import request from '@/config/axios'

export const getList = async (params) => {
  return await request.get({
    url: '/customerApproval/page',
    params
  })
}

export const getCustomerList = async (params) => {
  return await request.get({
    url: '/customer/page',
    params
  })
}

export const approvalAccount = async (data) => {
  return await request.post({
    url: '/customerApproval/approval',
    data
  })
}

export const examineSettingPage = async () => {
  return await request.get({
    url: '/examineSetting/page'
  })
}

export const batchUpdate = async (data) => {
  return await request.put({
    url: '/examineSetting/batchUpdate',
    data
  })
}

export const listAllSimple = async () => {
  return await request.get({
    url: '/system/user/list-all-simple'
  })
}

export const financeTopUpApprove = async (data) => {
  return await request.put({
    url: '/financeTopUp/topUpApprove',
    data
  })
}

export const financeDeductApprove = async (data) => {
  return await request.put({
    url: '/financeDeduct/deductApprove',
    data
  })
}

export const customerApprovalExport = async (params) => {
  return await request.download({
    url: '/customerApproval/export-excel',
    params
  })
}
